﻿using Admin.NET.Core;
using System.ComponentModel.DataAnnotations;

namespace Admin.NET.Application;

    /// <summary>
    /// 组态设计明细表基础输入参数
    /// </summary>
    public class BoardDisplayDesignDetailBaseInput
    {
        /// <summary>
        /// 主表Id
        /// </summary>
        public virtual long? MainID { get; set; }
        
        /// <summary>
        /// 设计编号
        /// </summary>
        public virtual string? DesignNo { get; set; }
        
        /// <summary>
        /// 类型
        /// </summary>
        public virtual string? ItemType { get; set; }
        
        /// <summary>
        /// Top(距离上)
        /// </summary>
        public virtual int Top { get; set; }
        
        /// <summary>
        /// Left(距离左)
        /// </summary>
        public virtual int Left { get; set; }
        
        /// <summary>
        /// 宽度
        /// </summary>
        public virtual int? Width { get; set; }
        
        /// <summary>
        /// 高度
        /// </summary>
        public virtual int? Height { get; set; }
        
        /// <summary>
        /// EndTop(结束位置上)
        /// </summary>
        public virtual int? EndTop { get; set; }
        
        /// <summary>
        /// EndLeft(结束位置左)
        /// </summary>
        public virtual int? EndLeft { get; set; }
        
        /// <summary>
        /// 方向
        /// </summary>
        public virtual int? Direction { get; set; }
        
        /// <summary>
        /// 状态
        /// </summary>
        public virtual int? State { get; set; }
        
        /// <summary>
        /// 颜色
        /// </summary>
        public virtual string? Color { get; set; }
        
        /// <summary>
        /// 是否带箭头
        /// </summary>
        public virtual bool? Arrow { get; set; }
        
        /// <summary>
        /// 创建时间
        /// </summary>
        public virtual DateTime? CreateTime { get; set; }
        
        /// <summary>
        /// 更新时间
        /// </summary>
        public virtual DateTime? UpdateTime { get; set; }
        
        /// <summary>
        /// 创建者Id
        /// </summary>
        public virtual long? CreateUserId { get; set; }
        
        /// <summary>
        /// 创建者姓名
        /// </summary>
        public virtual string? CreateUserName { get; set; }
        
        /// <summary>
        /// 修改者Id
        /// </summary>
        public virtual long? UpdateUserId { get; set; }
        
        /// <summary>
        /// 修改者姓名
        /// </summary>
        public virtual string? UpdateUserName { get; set; }
        
        /// <summary>
        /// 软删除
        /// </summary>
        public virtual bool IsDelete { get; set; }
        
        /// <summary>
        /// 半径
        /// </summary>
        public virtual int? Radius { get; set; }
        
    }

    /// <summary>
    /// 组态设计明细表分页查询输入参数
    /// </summary>
    public class BoardDisplayDesignDetailInput : BasePageInput
    {
        /// <summary>
        /// 关键字查询
        /// </summary>
        public string? SearchKey { get; set; }

        /// <summary>
        /// 主表Id
        /// </summary>
        public long? MainID { get; set; }
        
        /// <summary>
        /// 设计编号
        /// </summary>
        public string? DesignNo { get; set; }
        
        /// <summary>
        /// 类型
        /// </summary>
        public string? ItemType { get; set; }
        
        /// <summary>
        /// Top(距离上)
        /// </summary>
        public int? Top { get; set; }
        
        /// <summary>
        /// Left(距离左)
        /// </summary>
        public int? Left { get; set; }
        
        /// <summary>
        /// 宽度
        /// </summary>
        public int? Width { get; set; }
        
        /// <summary>
        /// 高度
        /// </summary>
        public int? Height { get; set; }
        
        /// <summary>
        /// EndTop(结束位置上)
        /// </summary>
        public int? EndTop { get; set; }
        
        /// <summary>
        /// EndLeft(结束位置左)
        /// </summary>
        public int? EndLeft { get; set; }
        
        /// <summary>
        /// 方向
        /// </summary>
        public int? Direction { get; set; }
        
        /// <summary>
        /// 颜色
        /// </summary>
        public string? Color { get; set; }
        
        /// <summary>
        /// 是否带箭头
        /// </summary>
        public bool? Arrow { get; set; }
        
        /// <summary>
        /// 半径
        /// </summary>
        public int? Radius { get; set; }
        
    }

    /// <summary>
    /// 组态设计明细表增加输入参数
    /// </summary>
    public class AddBoardDisplayDesignDetailInput : BoardDisplayDesignDetailBaseInput
    {
        /// <summary>
        /// Top(距离上)
        /// </summary>
        [Required(ErrorMessage = "Top(距离上)不能为空")]
        public override int Top { get; set; }
        
        /// <summary>
        /// Left(距离左)
        /// </summary>
        [Required(ErrorMessage = "Left(距离左)不能为空")]
        public override int Left { get; set; }
        
        /// <summary>
        /// 软删除
        /// </summary>
        [Required(ErrorMessage = "软删除不能为空")]
        public override bool IsDelete { get; set; }
        
    }

    /// <summary>
    /// 组态设计明细表删除输入参数
    /// </summary>
    public class DeleteBoardDisplayDesignDetailInput : BaseIdInput
    {
    }

    /// <summary>
    /// 组态设计明细表更新输入参数
    /// </summary>
    public class UpdateBoardDisplayDesignDetailInput : BoardDisplayDesignDetailBaseInput
    {
        /// <summary>
        /// 主键Id
        /// </summary>
        [Required(ErrorMessage = "主键Id不能为空")]
        public long Id { get; set; }
        
    }

    /// <summary>
    /// 组态设计明细表主键查询输入参数
    /// </summary>
    public class QueryByIdBoardDisplayDesignDetailInput : DeleteBoardDisplayDesignDetailInput
    {

    }
